class Student {
  String stuId;
  String name;
  String pwd;
  String major;
  String sex;
  String photo;
  double money;
  String phone;
  String college;
  int signScore;
  String qq;
  String wechat;


  Student(this.stuId, this.name, this.pwd, this.major, this.sex, this.photo,
      this.money, this.phone);

  String setName(String val) {
    this.name = val;
  }

  String setMajor(String val) {
    this.major = val;
  }

  String setPhone(String val) {
    this.phone = val;
  }

  String setPhoto(String val) {
    this.photo = val;
  }

  Student.fromJson(Map<String, dynamic> json) {
    stuId = json['stuId'];
    name = json['name'];
    pwd = json['pwd'];
    major = json['major'];
    sex = json['sex'];
    photo = json['photo'];
    money = json['money'];
    phone = json['phone'];
    college = json['college'];
    signScore = json['signScore'];
    qq = json['qq'];
    wechat = json['wechat'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['stuId'] = this.stuId;
    data['name'] = this.name;
    data['pwd'] = this.pwd;
    data['major'] = this.major;
    data['sex'] = this.sex;
    data['photo'] = this.photo;
    data['money'] = this.money;
    data['phone'] = this.phone;
    data['college'] = this.college;
    data['signScore'] = this.signScore;
    data['qq'] = this.qq;
    data['wechat'] = this.wechat;
    return data;
  }
}
